<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-emergency-edit" th:object="${emergency}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <!-- <div class="form-group">	
                <label class="col-sm-3 control-label">医生名称：</label>
                <div class="col-sm-8">
                    <input id="yishengId" name="yishengId" th:field="*{yishengId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">护士名称：</label>
                <div class="col-sm-8">
                    <input id="hushiId" name="hushiId" th:field="*{hushiId}" class="form-control" type="text">
                </div>
            </div> -->
            <div class="form-group">
				<label class="col-sm-3 control-label">医生姓名：</label>
				<div class="col-sm-8">
					<select id="yishengId" name="yishengId" class="form-control" ><!--  th:disabled="${post.status == '1'}"判断 -->
						<option th:each="post:${yisheng}" th:value="${post.userId}" th:text="${post.userName}" th:selected="${post.flag}"></option>
					</select>
				</div>
			</div>
            <div class="form-group">
				<label class="col-sm-3 control-label">护士姓名：</label>
				<div class="col-sm-8">
					<select id="hushiId" name="hushiId" class="form-control" ><!--  th:disabled="${post.status == '1'}"判断 -->
						<option th:each="post:${hushi}" th:value="${post.userId}" th:text="${post.userName}" th:selected="${post.flag}"></option>
					</select>
				</div>
			</div>

            
            <div class="form-group">	
                <label class="col-sm-3 control-label">疾病种类：</label>
                <div class="col-sm-8">
                    <input id="jibingType" name="jibingType" th:field="*{jibingType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
				<label class="col-sm-3 control-label">疾病种类：</label>
				<div class="col-sm-8">
					<select class="form-control" id="jibingType" name="jibingType" th:field="*{jibingType}">
				       	<option  th:value="传染病" th:selected="${jibingType == '传染病'?true : false}">传染病</option>
				        <option th:value="急诊" th:selected="${jibingType == '急诊'?true : false}">急诊</option>
				        <option  th:value="手足口" th:selected="${jibingType == '手足口'?true : false}">手足口</option>
				        <option  th:value="紧急病种" th:selected="${jibingType == '紧急病种'?true : false}">紧急病种</option>
				        <option  th:value="空气传播类型" th:selected="${jibingType == '空气传播类型'?true : false}">空气传播类型</option>
				        <option  th:value="动物传播类型" th:selected="${jibingType == '动物传播类型'?true : false}">动物传播类型</option>
				    </select>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/emergency"
		$("#form-emergency-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-emergency-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
